package org.bjtu.util.mail;

import javax.mail.*;

public class MailAuthenticator
    extends Authenticator
{
  String username = null;
  String password = null;

  public MailAuthenticator(String username,String password)
  {
    this.username = username;
    this.password = password;
  }

  public PasswordAuthentication getPasswordAuthentication()
  {
    PasswordAuthentication pa = new PasswordAuthentication(username,password);
    return pa;
  }
}
